<{if $list}>
<table class="table table-bordered table-striped table-condensed">
                              <thead>
                              <tr>
                                  <th class="text-center">选择</th>
                                  <th class="numeric text-center">租金</th>
                                  <th class="text-center">房间编号</th>
                                  <th class="text-center">位于</th>
                                  
                              </tr>
                              </thead>
                              <tbody>
                             
                             <{foreach $list as $v}>
                              <tr>
                                  <td class="text-center">

  <input type="radio" name="roomid" value="<{$v["id"]}>" data-rent="<{$v["rent"]}>" data-name="<{$v["room_no"]}>">
                                  </td>
                                  <td class="numeric text-center"><{$v["rent"]}></td>
                                  <td class="text-center"><{$v["room_no"]}></td>
                                  <td class="text-center"><{$v["local"]}></td>
                              </tr>
                              <{/foreach}>
                           
                              </tbody>
</table>

 <{if isset($page_data)&&!empty($page_data)}>
<div class="jppager text-center">
            <nav>
  <ul class="pagination">
    <li>
        <a onclick="pageclick(this);" data-pageinfo="<{$page_data["prev"]}>" href="javascript:void(0);" aria-label="Previous">
        <span aria-hidden="true">&laquo;</span>
      </a>
    </li>
    <{for $i=1;$i<=$page_data["total_pages"];$i++}>
    <{if $page_data["cur"]-4>1&&$i==2}>
    <{$i=$page_data["cur"]-4;}>
    <{elseif $i==$page_data["cur"]+4&&$page_data["cur"] + 4 < $page_data["total_pages"]}>
    <{$i = $page_data["total_pages"] - 1;}>
    <{else}>
    <li <{ if$i==$page_data["cur"]}>class='active'<{/if}>><a onclick="pageclick(this);" data-pageinfo="<{$i}>"  href="javascript:void(0);"><{$i}></a></li>
    <{/if}>
    <{/for}>
    
    <li>
      <a onclick="pageclick(this);" data-pageinfo="<{$page_data["next"]}>"  href="javascript:void(0);" aria-label="Next">
        <span aria-hidden="true">&raquo;</span>
      </a>
    </li>
  </ul>
</nav>
</div>
<{/if}>
<{else}>
<div class="col-md-12 col-xs-12">
    <h1></h1>
</div>
  <{/if}>
<script>
    $("input[name='roomid']").click(function(){
        var id=$(this).val();
        var room_no=$(this).data("name");
        var rent=$(this).data("rent");
        $("input[name='submit_room_id']").val(id);
        $("input[name='submit_room_no']").val(room_no);
        $("input[name='rent']").val(rent);
        $("#roomlist").modal('hide');
    });
</script>